  import { createStore } from 'vuex'
  import test from "./test.js"
  import shopcart from "./shopcart.js";
  import dingdan from "./dingdan.js"
  import classification from "./classification.js"
  import addAddress from './addAddress.js'
  import DG from "./DiscountGroup.js"
  import ptdingdan from './ptdingdan.js'
  import ME from './meskill.js'
  import dizhi from"./dizhi.js"
  import takeTouxiangImg from './takeTouxiangImg.js'
  import UC from "./useCoupons.js"

  const store = createStore({
      state: {
		  // IP:'http://192.168.3.220:8088',
		  IP:'http://localhost:8088',
		  foundMessage:[],
		  xiabiao:0,
		  userID:1,//用户登录后的id默认1
	  },
	  mutations:{
		  allData(state,obj){
			  state.foundMessage=obj
		  },
		  xiaBiao(state,obj){
			  state.xiabiao=obj
		  },
		  XIUid(state,id){
		  	 state.userID=id
		  }
	  },
	  modules:{
		  test,
		  shopcart,
		  dingdan,
		  addAddress,
		  DG,
		  ptdingdan,
		  ME,
		  dizhi,
		  takeTouxiangImg,
		  UC,
		  classification
	  }
  })
  export default store